package cn.gok.gokhappymall.manage.service.impl;

import cn.gok.gokhappymall.dao.ProductMapper;
import cn.gok.gokhappymall.manage.service.IProductService;
import cn.gok.gokhappymall.manage.web.vo.ProductVO;
import cn.gok.gokhappymall.pojo.Product;
import cn.gok.gokhappymall.util.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: chenfan
 * @Description:
 */
@Service
public class ProductServiceImpl implements IProductService {

    @Autowired
    ProductMapper productMapper;

    @Override
    public ResultData getAllProducts(int pageNum, int pageSize) {
        List<Product> products = productMapper.queryAllProducts();
        ProductVO productVO = new ProductVO();
        return ResultData.createData(productVO);
    }
}
